<?php
/**
 * Created by PhpStorm
 * User: shen.zk
 * Date: 2023/8/27
 * Time: 11:53
 * Comment: ''
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class LoginParams extends BaseParam
{
    public $phone;

    public $mid;

    /**
     * 字段校验规则
     * @return string[]
     * @author shen.zk
     * @date 2023-08-26 18:15
     */
    public function rules()
    {
        return [
            'phone' => 'required|string',
            'mid' => 'required|string',
        ];
    }

    /**
     * 参数错误提示
     * @return string[]
     * @author shen.zk
     * @date 2023-08-26 18:18
     */
    public function message()
    {
        return [
            "phone.required"=>"手机号不能为空",
            "mid.required"=>"商户号不能为空",
        ];
    }

    public function getPhone()
    {
        return $this->phone;
    }

    public function getMid()
    {
        return $this->mid;
    }
}
